package com.example.smallandroidcodetester;

import android.app.Activity;
import android.os.Bundle;
import de.greenrobot.event.EventBus;

public class EventBusExample2 extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.activity_main);

		EventBus.getDefault().registerSticky(this);
	}

	public void onEvent(Object alma) {
		System.out.println("------------------------------");
	}

	@Override
	protected void onDestroy() {
		super.onDestroy();
		EventBus.getDefault().unregister(this);
	}

}
